import request from '@/utils/request'

// 查询菜品汇总列表
export function listSummary_dishes(query) {
  return request({
    url: '/food/summary_dishes/list',
    method: 'get',
    params: query
  })
}

// 查询菜品汇总详细
export function getSummary_dishes(id) {
  return request({
    url: '/food/summary_dishes/' + id,
    method: 'get'
  })
}

// 新增菜品汇总
export function addSummary_dishes(data) {
  return request({
    url: '/food/summary_dishes',
    method: 'post',
    data: data
  })
}

// 修改菜品汇总
export function updateSummary_dishes(data) {
  return request({
    url: '/food/summary_dishes',
    method: 'put',
    data: data
  })
}

// 删除菜品汇总
export function delSummary_dishes(id) {
  return request({
    url: '/food/summary_dishes/' + id,
    method: 'delete'
  })
}
